package com.heima.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.heima.pojo.User;
import com.heima.pojo.dto.PageUserDto;
import com.heima.pojo.vo.UserVo;
import org.apache.ibatis.annotations.Param;

import java.lang.constant.ConstantDesc;

public interface UserMapper extends BaseMapper<User> {

    Page<UserVo> pageUser(@Param("page") Page page, @Param("pageUserDto") PageUserDto pageUserDto);

    int updateById(@Param("userId") Integer userId, @Param("user") User user);

}
